import { http } from '@/utils/http'

/**
 * 构建授权连接
 * @param data 请求参数
 */
export const postBuildAuthorizationUrlAPI = (data: any) => {
  return http<any>({
    method: 'POST',
    url: '/auth/buildAuthorizationUrl/wecom',
    data,
  })
}

export const postLoginAPI = (data: any) => {
  return http<any>({
    header: {
      isToken: false,
      isEncrypt: true,
    },
    method: 'POST',
    url: '/auth/login',
    data: data,
  })
}
